package com.ailanyin.admin.modules.system.model;

import com.ailanyin.common.model.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.ArrayList;
import java.util.List;

/**
 * 菜单
 *
 * @author ailanyin
 * @version 1.0
 * @since 2021/10/15 0015 上午 10:08
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class SysMenu extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "菜单ID")
    private Long menuId;

    @ApiModelProperty(value = "菜单名称")
    private String menuName;

    @ApiModelProperty(value = "父菜单名称")
    private String parentName;

    @ApiModelProperty(value = "父菜单ID")
    private Long parentId;

    @ApiModelProperty(value = "显示顺序")
    private String orderNum;

    @ApiModelProperty(value = "路由地址")
    private String path;

    @ApiModelProperty(value = "组件路径")
    private String component;

    @ApiModelProperty(value = "路由参数")
    private String query;

    @ApiModelProperty(value = "是否为外链(0->是,1->否)")
    private String isFrame;

    @ApiModelProperty(value = "是否缓存(0->是,1->否)")
    private String isCache;

    @ApiModelProperty(value = "类型(M目录 C菜单 F按钮)")
    private String menuType;

    @ApiModelProperty(value = "显示状态(0显示 1隐藏)")
    private String visible;

    @ApiModelProperty(value = "菜单状态(0显示 1隐藏)")
    private String status;

    @ApiModelProperty(value = "权限字符串")
    private String perms;

    @ApiModelProperty(value = "菜单图标")
    private String icon;

    @ApiModelProperty(value = "子菜单")
    private List<SysMenu> children = new ArrayList<SysMenu>();

}
